package io;

import java.io.IOException;
import java.io.FileOutputStream;
import java.io.OutputStream;
import java.io.PrintWriter;

public class demo12 {
    public static void main(String[] args) throws IOException {
        try(OutputStream outputStream = new FileOutputStream("./test.txt")){
            PrintWriter writer = new PrintWriter(outputStream);
            writer.println();
            writer.printf("a = %d\n",10);
        }
    }
}
